"""
    This file is part of keg.

    Keg is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Keg is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Keg.  If not, see <http://www.gnu.org/licenses/>.




    This file contains all the imports that Keg will use. If you have a module
    you want to use, here'll be a great place to import it. Note however that
    simply because you import a module doesn't guarantee that it will run for
    a given url. You will still have to register it for that url.

"""

import os

env = {}    #We use this dictionary to help you pass certain variables to all fxns

#Stuff needed by PythonWeb
PYWEB_DB_ADAPTER = "mysql"
PYWEB_DB = "keg"
PYWEB_DB_USERNAME = "root"
PYWEB_DB_PASSWD = ""
PYWEB_DB_HOST = "" #The host to connect to if the database is running on a remote server.
PYWEB_DB_PORT = "" #The port to connect to if the database is running on a remote server.


modules = [
            #Your own imports can come here
            "salestracker.login",
            "hello_world.hello_world",
          ]

#We use this dictionary to decide which file to load in order to display a
#given url. You cannot overload templates! The strings are treated as regexs.
templates = {
            r"/reg":os.path.join(os.getcwd(), 'keg_templates\\merch_reg.html'),
            r"/login$":os.path.join(os.getcwd(), 'keg_templates\\auth.html'),
            #"^.*$":os.path.join(os.getcwd(), 'keg_templates\\hello.htm'),
            }
